public class Rectangle extends Shapes {
    private double a;
    private double b;

    public Rectangle() {
    }

    public Rectangle(int a, int b) {
        this.a = a;
        this.b = b;

    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }



    public void area() {
        System.out.println("矩形面积是"+(a*b));
    }
    public  void c(){
        System.out.println("矩形周长是"+((a+b)*2));
    }
}
